<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>my site</title>
    <style>
        .container {
            width: 1200px;        /*宽*/
            margin: 10px auto;    /*居中*/
        }
        .logo img {
            width: 100%;
            height: 150px;
        }
        .footer {
            text-align: center;
        }
        ul {
            list-style-type: none;   /*去除项目标号*/
            padding: 0;
        }
        li {
            float: left;
        }
        .nav a {
            font-size: 20px;
            width: 200px;
            height: 50px;
            display: block;
            text-decoration: none;
            background: #BEBEBE;
            text-align: center;
            line-height: 50px;  /*行高50px，默认文字出现在一行的中间*/
            border-bottom: 2px solid darkred;
            color: white;
        }
        .nav a:hover {
            background: darkred;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="logo">
        <img src="http://pic1.win4000.com/wallpaper/4/54865afc5d263.jpg">
    </div>
    <div class="nav">
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">Linux</a></li>
            <li><a href="#">Shell</a></li>
            <li><a href="#">Python</a></li>
            <li><a href="#">CSS</a></li>
            <li><a href="#">JavaScript</a></li>
        </ul>
    </div>
    <div class="main">
        this is a test
    </div>
    <div class="footer">
        达内科技&copy; <a href="http://linux.tedu.cn">达内云计算学院</a>
    </div>
</div>
</body>
</html>